label: Remove duplicated comment
authorBenjamin Otte <otte@redhat.com>
Sun, 17 Apr 2011 18:54:35 +0000 (20:54 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 19 Apr 2011 20:18:18 +0000 (22:18 +0200)
gtk/gtklabel.c

index 31d606d69d18c0b0a3caae23dc066650d697c1eb..2021f0a57a8fa15d13ece0c2a42382933e41e90f 100644 (file)
@@ -3554,6 +3554,12 @@ gtk_label_get_preferred_layout_size (GtkLabel *label,
    *    - minimum size should be MAX (width-chars, 0)
    *    - natural size should be MIN (max-width-chars, strlen (priv->text))
    *
+   *    For ellipsizing labels; if max-width-chars is specified: either it is used as 
+   *    a minimum size or the label text as a minimum size (natural size still overflows).
+   *
+   *    For wrapping labels; A reasonable minimum size is useful to naturally layout
+   *    interfaces automatically. In this case if no "width-chars" is specified, the minimum
+   *    width will default to the wrap guess that gtk_label_ensure_layout() does.
    */
 
   layout = gtk_label_get_measuring_layout (label, NULL, -1);
@@ -3570,25 +3576,6 @@ gtk_label_get_preferred_layout_size (GtkLabel *label,
   /* Fetch the length of the complete unwrapped text */
   text_width = required->width;
 
-  /* "width-chars" Hard-coded minimum width: 
-   *    - minimum size should be MAX (width-chars, strlen ("..."));
-   *    - natural size should be MAX (width-chars, strlen (priv->text));
-   *
-   * "max-width-chars" User specified maximum size requisition
-   *    - minimum size should be MAX (width-chars, 0)
-   *    - natural size should be MIN (max-width-chars, strlen (priv->text))
-   *
-   *    For ellipsizing labels; if max-width-chars is specified: either it is used as 
-   *    a minimum size or the label text as a minimum size (natural size still overflows).
-   *
-   *    For wrapping labels; A reasonable minimum size is useful to naturally layout
-   *    interfaces automatically. In this case if no "width-chars" is specified, the minimum
-   *    width will default to the wrap guess that gtk_label_ensure_layout() does.
-   *
-   *    In *any* case the minimum width is completely overridden if an explicit width 
-   *    request was provided.
-   */
-
   if (priv->ellipsize || priv->wrap)
     {
       gint char_pixels, ellipsize_chars;